package com.topscomm.meet.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/*
  确认参会表单DTO
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class ConfirmInfo {
    @NotBlank
    String sourceType;
    @NotBlank
    @Pattern(regexp = "[0-9]*$")
    String sourceId;
    /*
    是否参会
     */
    @NotNull
    Boolean confirmState;
    @NotBlank
    String userCode;
    /*
    不参会原因
     */
    @Size(max = 10)
    String reason;
    /*
    不参会说明
     */
    @Size(max = 200)
    String description;
    String assignUsers;
    String assignUsernames;
    /*
    是否展示参会按钮
     */
    Boolean showConfirm;
}
